package com.example.teamtribe.main.club.manage.feedback;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.example.teamtribe.R;
import com.example.teamtribe.base.BaseActivity;
import com.example.teamtribe.database.Team;
import com.example.teamtribe.main.club.manage.feedback.apply.AppListActivity;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class FeedbackActivity extends BaseActivity {

    @BindView(R.id.tv_subTitle)
    TextView tvSubTitle;
    private Team team;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_feedback);
        ButterKnife.bind(this);
        team = getIntent().getParcelableExtra("team");
        tvSubTitle.setText(team.getName());
    }


    @OnClick({R.id.ll_item_new, R.id.ll_item_activity, R.id.ll_item_finance, R.id.ll_item_members, R.id.ll_item_notification})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.ll_item_new:
                Intent ne = new Intent(this, AppListActivity.class);
                ne.putExtra("teamId", team.getRealId());
                startActivity(ne);
                break;
            case R.id.ll_item_activity:
                break;
            case R.id.ll_item_finance:
                break;
            case R.id.ll_item_members:
                break;
            case R.id.ll_item_notification:
                break;
        }
    }
}
